container: Fix scrolling adjustment coordinates
authorTimm Bäder <mail@baedert.org>
Mon, 21 Aug 2017 10:12:50 +0000 (12:12 +0200)
committerTimm Bäder <mail@baedert.org>
Mon, 21 Aug 2017 10:30:47 +0000 (12:30 +0200)
gtk/gtkcontainer.c

index 2c51cdb4dd42acecb60da71caa8b477c3346e08c..9a8154b4aff2a5134961514477290336c350a9bf 100644 (file)
@@ -2059,11 +2059,7 @@ gtk_container_real_set_focus_child (GtkContainer *container,
                                                  0, 0, &x, &y))
             return;
 
-          _gtk_widget_get_allocation (focus_child, &allocation);
-          x += allocation.x;
-          y += allocation.y;
-
-          _gtk_widget_get_allocation (child, &allocation);
+          gtk_widget_get_outer_allocation (child, &allocation);
 
           if (vadj)
             gtk_adjustment_clamp_page (vadj, y, y + allocation.height);